package com.gupao.ldr.pattern.strategy.pay.payport;

/**
 * 姑且把这个枚举当作一个常量去维护
 */
public enum  PayType {
    ALI_PAY(new AilPay()),
    WECHAT_PAY(new WechatPay()),
    UNION_PAY(new UnionPay()),
    JD_PAY(new JDPay());

    private Payment payment;
    PayType(Payment payment) {
        this.payment=payment;
    }

    public Payment get(){
        return this.payment;
    }
}
